package Inheritance;

public class Test {

	public static void main(String[] args) {
		// Create a new member of staff.
		Staff staffMember = new Staff();
		staffMember.setName("Kevin");
		staffMember.setOpinion("Java is rubbish!");

		staffMember.printName();
		staffMember.printOpinion();
		
		UG studentUG = new UG();
		studentUG.setName("Jim");
		studentUG.setfavBeer("Stella");
		studentUG.setMatric(10014981);
		studentUG.setOpinion("Software Engineers suck at coding!");
		
		studentUG.printName();
		studentUG.printOpinion();
		studentUG.printFavBeer();
		
		PG studentPG = new PG();
		studentPG.setName("Steven");
		studentPG.setDegree("Games Engineering");
		studentPG.setfavBeer("Desperado");
		studentPG.setMatric(68789798);
		studentPG.setOpinion("I got an awesome job!");
		
		studentPG.printName();
		studentPG.printDegree();
		studentPG.printMatric();
		studentPG.printOpinion();
		studentPG.printFavBeer();
	}

}
